<!--{include admin/top.html}-->
	<div class="mainPage">
		<script>
			function viewURL(obj){
				$("#viewURL").html("示例: "+$(obj).attr('eg'));
				if(obj.value==1){
					$("#url_suffix").attr('disabled','disabled');
					$("#support_url_rewrite").attr('disabled','disabled');
				}else if(obj.value==3){
					$("#support_url_rewrite").attr('checked',false);
					$("#support_url_rewrite").attr('disabled','disabled');
					$("#url_suffix").attr('disabled',false);
				}else{
					$("#url_suffix").attr('disabled',false);
					$("#support_url_rewrite").attr('disabled',false);
				}

			}
		</script>
		<h1 class="title">系统配置</h1>
		<form style="margin:0;padding:0;" method="post" action="{:parse_uri('admin-config')}" onsubmit="  return check(this)">
		<p style="line-height:30px;">
			默认主题&nbsp;:&nbsp;<select name="themes">
				<!--{foreach $conf['skins'] $k $v}-->
				<option value="{$v}" {if $v == $conf['themes']}selected{/if}>{$v}</option>
				<!--{/foreach}-->
			</select>
		</p>
		<p style="line-height:30px;">
			路由模式&nbsp;:&nbsp;<select name="router" onchange="viewURL(this.options[this.options.selectedIndex])">
				<option value="1" eg="index.php?mod=index&act=index" {if 1 === intval($conf['router'])}selected{/if}>默认</option>
				<option value="2" eg="index.php/index/index" {if 2 === intval($conf['router'])}selected{/if}>PATH INFO</option>
				<option value="3" eg="?index/index" {if 3 === intval($conf['router'])}selected{/if}>伪静态模式</option>
			</select>&nbsp;
			<span class="errmsg" id="viewURL">
				示例: {:parse_uri('index-index')}
			</span>
		</p>
		<p style="line-height:30px;">
			映射启用&nbsp;:&nbsp;<input type="checkbox" id="support_url_rewrite" name="support_url_rewrite" value="isset" {if $conf['support_url_rewrite']}selected{/if} />
			<span class="errmsg" id="viewURL">
				须服务器支持.htaccess文件映射
			</span>
		</p>
		<p style="line-height:30px;">
			URL 后缀&nbsp;:&nbsp; <input id="url_suffix" name="url_suffix" value="{$conf['url_suffix']}"/>
		</p>

		
		<p style="line-height:30px;text-align:left">
			<input type="submit" name="submit" class="submit" value="提交" />
			<input type="reset" class="submit" value="重置" />
		</p>

		</form>
		<p>&nbsp;</p>

	</div>
</body>
</html>